import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const systemManage: RouteConfig = {
  path: "/system",
  component: Layout,
  redirect: "/system/settings",
  name: "SystemManage",
  meta: {
    title: "systemMaintenance",
    icon: "iconfont icon-userstoryicon",
    authrole: 'system_admin',
    routerRuleName: "SystemManage"
  },
  children: [
    {
      path: "settings",
      component: () => import("@/views/system/settings.vue"),
      name: "SystemSettings",
      meta: {
        title: "systemSettings",
        noCache: true,
        authrole: 'system_admin',
        routerRuleName: "SystemSettings"
      }
    },
    {
      path: "backup",
      component: () => import("@/views/system/backup.vue"),
      name: "SystemBackup",
      meta: {
        title: "systemBackup",
        noCache: true,
        authrole: 'system_admin',
        hidden:true
      }
    }
  ]
};

export default systemManage;
